anonymous adj. 1.匿名的;无名的;假名的。 2.无个性特征的。 an anonymous author 无名氏作者。 an anonymous letter 匿名信。 an anonymous placard无名告示。 anonymous faces 生面孔。 adv. -ly ,-ness n.
inner adj. (superl. innermost, inmost) 1.内部的 (opp. outer)。 2.思想的,精神的;内心的,秘密的。 the inner circle 核心集团。 an inner room 内室。 I- Temple (见 inn条)。 the inner life of man 人的内心活动,人的精神生活。 an inner meaning 深意。 one's inner thoughts 内心深处的思想。 inner world 内心世界。 n. 1.内部,里面。 2.接近靶心部分,射中接近靶心部分的一发。 adj. -most =inmost.
Anonymous inner classes are handy when you want to define callbacks on the fly 匿名内部类可以方便的定义运行时回调。
Anonymous inner classes 匿名内部类
When they enclose a lexical unit of java code within an anonymous inner class for execution 例如,许多java开发人员在匿名内部类中封闭java代码的一个词汇单元( lexical unit )时第一次遇到了
Normally , such listeners are specified as instances of anonymous inner classes using the command pattern 通常,这样的侦听器通过使用命令模式( command pattern )被指定为匿名内部类的实例。
In the above base aspect , i ve stored transient state about the currently monitored request in an anonymous inner class 在上面的基方面中,我把当前被监视请求的中间状态保存在匿名内部类中。
This code uses an anonymous inner class , but you may also use named inner classes or independent classes as listeners 此代码使用了一个匿名的内部类,但您还可以使用指定的内部类或单独的类作为监听器。
While i could do something similar with java code using anonymous inner classes , it s simply easier and less esoteric in groovy 虽然我用java代码时能用匿名内部类做类似的事情,但是用groovy更容易、神秘性更少一些。